package com.bbex.mapper;

import com.bbex.entity.EntMessage;
import com.bbex.sql.build.MobileTemplateBuild;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;

@Mapper
public interface EntMessageDao {

    @SelectProvider(type = MobileTemplateBuild.class, method = "findById")
    EntMessage findById(String id);

    @Select("select id,title,content,msg_type as msgtype,company_code as companyCode,create_time as createTime from ent_message where msg_type = #{type}")
    EntMessage findByType(Integer type);
}
